// api.js 样式模板
module.exports = {
  apiTemplate: options => {
    return `


/*
   ${options.componentName}管理
*/

// 获取 ${options.componentName}列表
export const get${options.componentName} = params => {
  return $http.post('/manager/finds', params)
}
// 获取 ${options.componentName}详情
export const get${options.componentName}detail = params => {
  return $http.post('/manager/detail', params)
}
// 添加 ${options.componentName}
export const create${options.componentName} = params => {
  return $http.post('/manager/create', params)
}
// 修改 ${options.componentName}
export const edit${options.componentName} = params => {
  return $http.post('/manager/edit', params)
}
// 启用或者禁用 ${options.componentName}
export const status${options.componentName} = params => {
  return $http.post('/manager/status', params)
}
// 删除 ${options.componentName}
export const deletes${options.componentName} = params => {
  return $http.post('/manager/delete', params)
}


`
  },
  entryTemplate: `import Main from './main.vue'
export default Main`
}

